package com.jk.garden1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 用户管理
 */
@Data
@TableName("user_table")
@Document(indexName = "user",type = "doc")
public class SystemEntity {
    @TableId(type = IdType.AUTO)
    @Id
    @Field(type = FieldType.Integer)
    private Integer id;
    @Field(type = FieldType.Text)
    private String  name;//姓名
    @Field(type = FieldType.Text)
    private String  phone;//手机号
    @Field(type = FieldType.Text)
    private String  role;//角色
    @Field(type = FieldType.Text)
    private String  createtime;//创建时间
    @Field(type = FieldType.Text)
    private String  status;//状态
}
